#pragma once

#include "math.h"

#define PI                                                  ( (float) (3.14159265358979) )
#define RADIAN2DEGREE_VALUE                                 ( (float) (57.29577) )

float Sgn(float fpNumber);
float Clip(float value, float min, float max);
float invSqrt(float x);
float safeAtan2(float y,float x);
float RangeFmod(float x, float min, float max);
unsigned char SimpleHysteresis(unsigned char m_state, float input ,float threshold_low, float threshlod_high);
double LPF(float output_pre, float input, float samp_freq, float cut_freq);
bool Is_Float_Equal(float a, float b);